<!doctype html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-model="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>

<div id="app">
    <div>{{a}}</div>
    <div>{{b}}</div>
    <div>{{obj.c}}</div>
    <div>{{obj.d}}</div>
</div>


</body>
<script src="../../vender/vue@2.4.2.js"></script>
<script>
    var app=new Vue({
        el:'#app',
        data:{
            a:'a',
            obj:{}
        }
    });

    app.b='a';//非响应式的

    setTimeout(()=>{
        app.a='AA';
        app.b='BB';
    },1000);

    app.obj.c='c';
    app.obj.d='d';

    setTimeout(()=>{
        Vue.set(app.obj,'c','CC');
    },2000);

    setTimeout(()=>{
        app.$set(app.obj,'d','DD');
    },2000);




</script>
</html>